package com.hoshiicloud.mallshop.feign;

import com.hoshiicloud.mallshop.feign.hystrix.ShopIdGeneratorFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "hoshiicloud-id-generator", fallback = ShopIdGeneratorFeignFallback.class)
@Repository
public interface ShopIdGeneratorService {

	/**
	 * 获取主键
	 *
	 * @return String
	 */
	@GetMapping("/getuuId")
	String queryGeneratorId();

}
